home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / stepp000.swf / scripts / frame_1212 / PlaceObject2_2636_210 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2008-11-12  |  2KB  |  46 lines

  1. onClipEvent(enterFrame){
  2.    if(eval("/Variables:FeuParti") == true)
  3.    {
  4.    }
  5.    if(Key.isDown(Key.RIGHT) and eval("/Variables:PositionFusee") < 120)
  6.    {
  7.       set("/Variables:PositionFusee",eval("/Variables:PositionFusee") + 20);
  8.       setProperty("../Portail/Mains", _X, getProperty("../Portail/Mains", _X) + 20);
  9.       setProperty("../Portail/Mains", _rotation, getProperty("../Portail/Mains", _rotation) + 2);
  10.       if(eval("/Variables:FeuParti") == false)
  11.       {
  12.          setProperty("../Portail/Feu", _X, getProperty("../Portail/Feu", _X) + 20);
  13.          setProperty("../Portail/Feu", _rotation, getProperty("../Portail/Feu", _rotation) + 2);
  14.       }
  15.    }
  16.    if(Key.isDown(Key.LEFT) and -120 < eval("/Variables:PositionFusee"))
  17.    {
  18.       set("/Variables:PositionFusee",eval("/Variables:PositionFusee") - 20);
  19.       setProperty("../Portail/Mains", _X, getProperty("../Portail/Mains", _X) - 20);
  20.       setProperty("../Portail/Mains", _rotation, getProperty("../Portail/Mains", _rotation) - 2);
  21.       if(eval("/Variables:FeuParti") == false)
  22.       {
  23.          setProperty("../Portail/Feu", _X, getProperty("../Portail/Feu", _X) - 20);
  24.          setProperty("../Portail/Feu", _rotation, getProperty("../Portail/Feu", _rotation) - 2);
  25.       }
  26.    }
  27.    if(Key.isDown(Key.DOWN) and 0 < eval("/Variables:PositionHauteur"))
  28.    {
  29.       set("/Variables:PositionHauteur",eval("/Variables:PositionHauteur") - 20);
  30.       setProperty("../Portail/Mains", _Y, getProperty("../Portail/Mains", _Y) + 20);
  31.       if(eval("/Variables:FeuParti") == false)
  32.       {
  33.          setProperty("../Portail/Feu", _Y, getProperty("../Portail/Feu", _Y) + 20);
  34.       }
  35.    }
  36.    if(Key.isDown(Key.UP) and eval("/Variables:PositionHauteur") < 180)
  37.    {
  38.       set("/Variables:PositionHauteur",eval("/Variables:PositionHauteur") + 20);
  39.       setProperty("../Portail/Mains", _Y, getProperty("../Portail/Mains", _Y) - 20);
  40.       if(eval("/Variables:FeuParti") == false)
  41.       {
  42.          setProperty("../Portail/Feu", _Y, getProperty("../Portail/Feu", _Y) - 20);
  43.       }
  44.    }
  45. }
  46.